<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:composition>
		<p:dataTable id="#{metadataSelectionTableId}" value="#{metadataSelectionTableModel}" var="metadatamodel">
			<f:facet name="header">
				<div>
					<h:outputText value="#{messages.metadata}" />
					<p:commandButton id="showMetadataAddPanelButton" value="+" type="button" style="float: right;" onclick="#{addMetadataModalDialogWidgetVar}.show();">
						<p:tooltip for="showMetadataAddPanelButton" value="#{messages.inc_metadatavalueselection_tooltip_addButton}" />
					</p:commandButton>
				</div>
			</f:facet>
			<p:column>
				<h:selectBooleanCheckbox value="#{metadatamodel.selected}" />
			</p:column>
			<p:column>
				<h:outputText value="#{metadatamodel.metadata.name}" />
			</p:column>
			<p:column>
				<h:inputText value="#{metadatamodel.value}" />
			</p:column>
		</p:dataTable>
	</ui:composition>
</html>